package com.feng.oauth2.oauth.service;


import com.feng.oauth2.oauth.domain.dto.UserFormDto;
import com.feng.oauth2.oauth.domain.dto.UserJsonDto;
import com.feng.oauth2.oauth.domain.dto.UserOverviewDto;
import org.springframework.security.core.userdetails.UserDetailsService;

public interface UserService extends UserDetailsService {

    /**
     * 获取当前用户信息
     */
    UserJsonDto loadCurrentUserJsonDto();

    UserOverviewDto loadUserOverviewDto(UserOverviewDto overviewDto);

    boolean isExistedUsername(String username);

    String saveUser(UserFormDto formDto);
    
    void updateUserPassword(UserFormDto formDto);

    UserJsonDto findByClientId(String client_id);
}